package com.code.softeem.zuoye.demo2;

/**
 * @author xiyu
 * @version 1.0
 * @date 2025/3/20 17:11
 * @description
 */
public class Test {
    public static void main(String[] args) {
        Auto auto1 = new Auto(4,"黑色",15000,100);
        Auto auto2 = new Auto();
        auto2.setLtgs(4);
        auto2.setColor("灰色");
        auto2.setZhong(16000);
        auto2.setSpeed(100);

        auto1.speedUp();
        auto2.speedDown();

        auto1.getInfo();
        auto2.getInfo();

        Car car1 = new Car(4,"黑色",15000,100,"26","将进酒");
        Car car2 = new Car();
        car2.setLtgs(4);
        car2.setColor("灰色");
        car2.setZhong(16000);
        car2.setSpeed(100);
        car2.setKongtiao("25");
        car2.setCD("东风破");

        car1.speedUp();
        car2.speedDown();

        car1.getInfo();
        car2.getInfo();

    }
}
